SET(SOURCE_FILES 
	${KLAYGE_PROJECT_DIR}/Tools/src/KGEditor/KGEditorCore/KGEditorCore.cpp
)

SET(HEADER_FILES
	${KLAYGE_PROJECT_DIR}/Tools/src/KGEditor/KGEditorCore/Common.hpp
	${KLAYGE_PROJECT_DIR}/Tools/src/KGEditor/KGEditorCore/KGEditorCore.hpp
	${KLAYGE_PROJECT_DIR}/Tools/src/KGEditor/KGEditorCore/PreDeclare.hpp
)

SET(EFFECT_FILES
	${KLAYGE_PROJECT_DIR}/Tools/media/KGEditor/MVUtil.fxml
)

SOURCE_GROUP("Source Files" FILES ${SOURCE_FILES})
SOURCE_GROUP("Header Files" FILES ${HEADER_FILES})
SOURCE_GROUP("Resource Files" FILES ${RESOURCE_FILES})
SOURCE_GROUP("Effect Files" FILES ${EFFECT_FILES})
SOURCE_GROUP("Post Processors" FILES ${POST_PROCESSORS})
SOURCE_GROUP("UI Files" FILES ${UI_FILES})

ADD_LIBRARY(KGEditorCore SHARED ${SOURCE_FILES} ${HEADER_FILES} ${RESOURCE_FILES} ${EFFECT_FILES} ${POST_PROCESSORS} ${UI_FILES})

ADD_DEPENDENCIES(KGEditorCore AllInEngine)

SET_TARGET_PROPERTIES(KGEditorCore PROPERTIES
	OUTPUT_NAME KGEditorCore
	FOLDER "KlayGE/Tools/KGEditor"
)

target_link_libraries(KGEditorCore
	PUBLIC
		KlayGE_Core
)
